Optimal. Leaf size=53 \[ \frac{\tan ^3(a+b x)}{3 b}+\frac{3 \tan (a+b x)}{b}-\frac{\cot ^3(a+b x)}{3 b}-\frac{3 \cot (a+b x)}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0383726, antiderivative size = 53, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.118, Rules used = {2620, 270} \[ \frac{\tan ^3(a+b x)}{3 b}+\frac{3 \tan (a+b x)}{b}-\frac{\cot ^3(a+b x)}{3 b}-\frac{3 \cot (a+b x)}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2620
Rule 270
Rubi steps
\begin{align*} \int \csc ^4(a+b x) \sec ^4(a+b x) \, dx &=\frac{\operatorname{Subst}\left (\int \frac{\left (1+x^2\right )^3}{x^4} \, dx,x,\tan (a+b x)\right )}{b}\\ &=\frac{\operatorname{Subst}\left (\int \left (3+\frac{1}{x^4}+\frac{3}{x^2}+x^2\right ) \, dx,x,\tan (a+b x)\right )}{b}\\ &=-\frac{3 \cot (a+b x)}{b}-\frac{\cot ^3(a+b x)}{3 b}+\frac{3 \tan (a+b x)}{b}+\frac{\tan ^3(a+b x)}{3 b}\\ \end{align*}
Mathematica [A] time = 0.018937, size = 43, normalized size = 0.81 \[ 16 \left (-\frac{\cot (2 (a+b x))}{3 b}-\frac{\cot (2 (a+b x)) \csc ^2(2 (a+b x))}{6 b}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.026, size = 68, normalized size = 1.3 \begin{align*}{\frac{1}{b} \left ({\frac{1}{3\, \left ( \cos \left ( bx+a \right ) \right ) ^{3} \left ( \sin \left ( bx+a \right ) \right ) ^{3}}}-{\frac{2}{3\,\cos \left ( bx+a \right ) \left ( \sin \left ( bx+a \right ) \right ) ^{3}}}+{\frac{8}{3\,\cos \left ( bx+a \right ) \sin \left ( bx+a \right ) }}-{\frac{16\,\cot \left ( bx+a \right ) }{3}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.01605, size = 59, normalized size = 1.11 \begin{align*} \frac{\tan \left (b x + a\right )^{3} - \frac{9 \, \tan \left (b x + a\right )^{2} + 1}{\tan \left (b x + a\right )^{3}} + 9 \, \tan \left (b x + a\right )}{3 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.14864, size = 165, normalized size = 3.11 \begin{align*} -\frac{16 \, \cos \left (b x + a\right )^{6} - 24 \, \cos \left (b x + a\right )^{4} + 6 \, \cos \left (b x + a\right )^{2} + 1}{3 \,{\left (b \cos \left (b x + a\right )^{5} - b \cos \left (b x + a\right )^{3}\right )} \sin \left (b x + a\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sec ^{4}{\left (a + b x \right )}}{\sin ^{4}{\left (a + b x \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.14615, size = 42, normalized size = 0.79 \begin{align*} -\frac{8 \,{\left (3 \, \tan \left (2 \, b x + 2 \, a\right )^{2} + 1\right )}}{3 \, b \tan \left (2 \, b x + 2 \, a\right )^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]